package com.villaday.idf.model3;

public class AddressPostEntity {

    /**
     * action : string,操作，0 新增/修改  2 删除
     * id : string,地址ID，新增时为空，修改/删除时不可为空
     * code : string,地址编码，最后一级行政区编码
     * address : string,详细地址，用户填写的地址，新增/修改时不可为空
     * linkman : string,联系人姓名，新增/修改时不可为空
     * mobile : string,联系人手机号码，新增/修改时不可为空，客户端仅需校验是否为空，具体格式由服务端校验
     * preferred : boolean,是否是默认地址，新增/修改时不可为空
     */

    private String action;
    private String id;
    private String code;
    private String address;
    private String linkman;
    private String mobile;
    private boolean preferred;

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public boolean getPreferred() {
        return preferred;
    }

    public void setPreferred(boolean preferred) {
        this.preferred = preferred;
    }
}
